package com.kylin.commodity.api.dto.resp;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.kylin.marketing.api.dto.resp.MarketingCampaignRespDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Value;

import java.io.Serializable;

/**
 * 商品精简版详情
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年01月07日 19:31
 */
@Builder
@Value
@ApiModel(value = "商品精简版详情")
public class CommodityLiteRespDTO implements Serializable {

    @ApiModelProperty(value = "商品ID")
    Long commodityId;

    @ApiModelProperty(value = "商品名称")
    String name;

    @ApiModelProperty(value = "副标题")
    String subtitle;

    @ApiModelProperty(value = "价格(分)")
    Long price;

    @ApiModelProperty(value = "商品库存(余)")
    Integer inventory;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "营销属性")
    MarketingCampaignRespDTO campaign;
}
